/**
 * Created by pankajmishra on 20/12/14.
 */

define(['jquery','mustache'], function($, Mustache){
    return function(item){

        item['commentCount'] = function(){
            return this.comments?this.comments.length:0;
        }
        var template = require('module/template/homeTemplate');
        return $(Mustache.to_html(template['notice-item'], item));
    };
});
